package cn.edu.dlut.ssdut.foodCredit2012.model;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;



@Entity
@Table(name = "_user")
public class User {
	private String licenceID;
	private String passWord;
	private String name;
	private Date registerTime;
	private Date lastLoginTime;
	private Date loginTime;
	private int count;
	private boolean info;
	
	private Basic basic;
	private Customs customs;
	private Export export;
	private Finance finance;
	private Permission permission;
	private Presentation presentation;
	private Quality quality;
	private Tax tax;
	
	@Transient
	public Basic getBasic() {
		return basic;
	}
	
	
	public int getCount() {
		return count;
	}
	@Transient
	public Customs getCustoms() {
		return customs;
	}
	@Transient
	public Export getExport() {
		return export;
	}
	@Transient
	public Finance getFinance() {
		return finance;
	}
	public Date getLastLoginTime() {
		return lastLoginTime;
	}
	
	@Id
	public String getLicenceID() {
		return licenceID;
	}
	public Date getLoginTime() {
		return loginTime;
	}
	public String getName() {
		return name;
	}
	public String getPassWord() {
		return passWord;
	}
	@Transient
	public Permission getPermission() {
		return permission;
	}
	@Transient
	public Presentation getPresentation() {
		return presentation;
	}
	@Transient
	public Quality getQuality() {
		return quality;
	}
	public Date getRegisterTime() {
		return registerTime;
	}
	@Transient
	public Tax getTax() {
		return tax;
	}
	
	public boolean getInfo() {
		return info;
	}
	public void setBasic(Basic basic) {
		this.basic = basic;
	}
	public void setCount(int count) {
		this.count = count;
	}
	public void setCustoms(Customs customs) {
		this.customs = customs;
	}
	public void setExport(Export export) {
		this.export = export;
	}
	public void setFinance(Finance finance) {
		this.finance = finance;
	}


	public void setInfo(boolean info) {
		this.info = info;
	}


	public void setLastLoginTime(Date lastLoginTime) {
		this.lastLoginTime = lastLoginTime;
	}


	public void setLicenceID(String licenceID) {
		this.licenceID = licenceID;
	}


	public void setLoginTime(Date loginTime) {
		this.loginTime = loginTime;
	}


	public void setName(String name) {
		this.name = name;
	}


	public void setPassWord(String passWord) {
		this.passWord = passWord;
	}


	public void setPermission(Permission permission) {
		this.permission = permission;
	}


	public void setPresentation(Presentation presentation) {
		this.presentation = presentation;
	}


	public void setQuality(Quality quality) {
		this.quality = quality;
	}


	public void setRegisterTime(Date registerTime) {
		this.registerTime = registerTime;
	}


	public void setTax(Tax tax) {
		this.tax = tax;
	}
	
	

}
